#include "UndefExtension.h"
ICoreAPI* UndefExtension::GetAPI()
{
	return m_API;
};

void UndefExtension::init(int id, ICoreAPI * api)
{
	m_API = api;
	m_ID = id;
	m_obj = 0;
	startX();
};

int UndefExtension::RegObj()
{
	m_obj++;
	return m_obj;
};

int  UndefExtension::GetID()
{
	return m_ID;
};

int UndefExtension::GetObjCount()
{
	return m_obj;
};

roImage* UndefExtension::GetImage()
{
	return GetAPI()->GetImage(GetID());
};

void UndefExtension::SetImage(roImage * data)
{	
	GetAPI()->SetImage(GetID(), data);
};

void UndefExtension::AddToMenu(
			   const wxString &menu,
			   const wxString &title,
			   const wxString &tooltip
			   )
{
	GetAPI()->_append_to_menu(GetID(), menu, title, tooltip);
}

bool UndefExtension::isok()
{
	//func, that indicate , thats all OK!
	return true;	
};


void UndefExtension::startX(){};
void UndefExtension::unset(){};